﻿CREATE TABLE [dbo].[t_Menu] (
    [MenuID]          INT            IDENTITY (1, 1) NOT NULL,
    [MenuName]        VARCHAR (50)   NOT NULL,
    [MenuLable]       VARCHAR (50)   NULL,
    [ParentMenuID]    INT            NOT NULL,
    [TabIndex]        INT            NULL,
    [Action]          VARCHAR (1024) NULL,
    [Params]          VARCHAR (1024) NULL,
    [Attributes]      VARCHAR (1024) NULL,
    [Heading]         VARCHAR (255)  NULL,
    [OnClick]         VARCHAR (512)  NULL,
    [OnOpen]          VARCHAR (512)  NULL,
    [OnRowClick]      VARCHAR (128)  NULL,
    [Icon]            VARCHAR (256)  NOT NULL,
    [Style]           VARCHAR (512)  NULL,
    [ApplLockTimeOut] INT            NULL,
    [IsManaged]       BIT            NULL,
    [TypeID]          TINYINT        NOT NULL,
    [NameSpaceID]     INT            NOT NULL
);


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Page ID on handler', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N't_Menu', @level2type = N'COLUMN', @level2name = N'OnClick';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Needs managed access for concurrent users', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N't_Menu', @level2type = N'COLUMN', @level2name = N'IsManaged';

